Beginning React: Simplify your frontend development workflow and enhance the user experience of your applications with React by Andrea Chiarelli
Author:Andrea Chiarelli [Chiarelli, Andrea]
Language: eng
Format: epub
Tags: COM051010 - COMPUTERS / Programming Languages / General, COM051260 - COMPUTERS / Programming Languages / JavaScript, COM060090 - COMPUTERS / Internet / Application Development
Publisher: Packt Publishing
Published: 2018-07-24T23:00:00+00:00
This component defines a list of wines, names, and descriptions.
We want to integrate our Catalog component with the wine list. Since we have created the ProductList component, we can use it as a tag in the JSX markup of the Catalog component, as shown here:
import React from 'react';
import ProductList from './ProductList';
class Catalog extends React.Component {
render() {
return <div>
<h2>Catalog</h2>
<ProductList />
</div>;
}
}
export default Catalog;
As you can see, we simply imported the ProductList component in order to make it available inside the Catalog component's module, and we used the ProductList tag where we wanted the wine list to appear.
Run npm start to launch the application. The resulting page will look like this:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(27096)
Hello! Python by Anthony Briggs(25951)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(25287)
Kotlin in Action by Dmitry Jemerov(24397)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(23592)
Dependency Injection in .NET by Mark Seemann(23313)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(21949)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(20852)
Grails in Action by Glen Smith Peter Ledbrook(19870)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17074)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(16833)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(14464)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(12585)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11867)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10652)
Hit Refresh by Satya Nadella(9239)
The Kubernetes Operator Framework Book by Michael Dame(8589)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8446)
Robo-Advisor with Python by Aki Ranin(8391)